package com.example.demo.domain;

import java.util.List;

public class Grade {

    /**
     * 学号
     */
    private int id;

    /**
     * 课程编号
     */
    private String courseNo;

    /**
     * 成绩
     */
    private int fraction;

    /**
     * 多表查询关联
     */
    private List<Student> studentList;

    public List<Student> getStudentList() {
        return studentList;
    }

    public void setStudentList(List<Student> studentList) {
        this.studentList = studentList;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getCourseNo() {
        return courseNo;
    }

    public void setCourseNo(String courseNo) {
        this.courseNo = courseNo;
    }

    public int getFraction() {
        return fraction;
    }

    public void setFraction(int fraction) {
        this.fraction = fraction;
    }

    @Override
    public String toString() {
        return "Grade{" +
                "id=" + id +
                ", courseNo='" + courseNo + '\'' +
                ", fraction=" + fraction +
                '}';
    }
}
